package news.service;

import news.dao.ISelPublishDao;
import news.dao.SelPublishImpl;
import news.example.Publish;
import news.util.PageBean;

import java.util.List;

/**
 * @author JiangJ
 * @date 2022/3/2 20:51
 */
public class SelPublishServiceImpl implements ISelPublishService {
    private final ISelPublishDao iSelPublishDao = new SelPublishImpl();

    @Override
    public PageBean getNewsPublishPageList(PageBean pagebean) {
        //√
        return iSelPublishDao.getNewsPublishPageList(pagebean);
    }

    @Override
    public int calcTotalCount() {
        //√
        return iSelPublishDao.calcTotalCount();
    }

    @Override
    public List<Publish> findAllPublish() {
        //√
        return iSelPublishDao.findAllPublish();
    }

}
